<?php
$sSql ="Select quartier.lib_".getParameter("language")." as lib,  quartier.id From portal_quartier quartier Where quartier.lib_".getParameter("language")."!='' and quartier.cityId = ".getParameter("id");
      $rs=$GLOBALS["conn"]->Execute($sSql); 
     // Portal_log($sSql);
      $json_names = array();
	   while ( !$rs->EOF)  { 
    $json_names[] = array('optionValue' =>  $rs->fields["id"],'optionDisplay' =>      $rs->fields["lib"]);
    $rs->MoveNext();  
  }
 

  echo json_encode($json_names);
  
?>